import request from '@/utils/request'

// 查询对接信息登录列表
export function listBusDockingInfo(query) {
  return request({
    url: '/bus/busDockingInfo/list',
    method: 'get',
    params: query
  })
}

// 查询对接信息登录详细
export function getBusDockingInfo(id) {
  return request({
    url: '/bus/busDockingInfo/' + id,
    method: 'get'
  })
}

// 新增对接信息登录
export function addBusDockingInfo(data) {
  return request({
    url: '/bus/busDockingInfo',
    method: 'post',
    data: data
  })
}


// 刷新token 测试
export function refreshToken(id) {
  return request({
    url: '/bus/busDockingInfo/refreshToken/' + id,
    method: 'get'
  })
}


// 修改对接信息登录
export function updateBusDockingInfo(data) {
  return request({
    url: '/bus/busDockingInfo',
    method: 'put',
    data: data
  })
}



// 删除对接信息登录
export function delBusDockingInfo(id) {
  return request({
    url: '/bus/busDockingInfo/' + id,
    method: 'delete'
  })
}
